package com.simple.simple_view.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

/*
 *@description: 路径生成器
 *@author: hisen
 *@Time: 2023/10/27  0:19
 */
public class PathUtil {

    public static String generateFileDir(String type, String fileName) {
        // 根据日期生成路径 2023/10/27/00
        SimpleDateFormat sdf = new SimpleDateFormat("/yyyy/MM/dd/HH/");
        String datePath = sdf.format(new Date());
        return type + datePath;
    }
}